	<?php 
		$uid = Yii::app()->request->getParam('uid');
		$data  = $langSkill->data;
		$level = Skill::listSkillLevel(); 
		$count = 0;
		if ($stype == 'language')
			$updateDiv = '#foreignLanguageTotal';
		else if ($stype == 'soft skill')
			$updateDiv = '#softSkillTotal';
		else
			$updateDiv = '#programmingTotal';
			
		echo '<div class = "skillListDiv">';
		echo '<table class ="skillList">';
		echo 	'<tr>
					<th id="stt">STT</th>
					<th id="name">Tên</th>
					<th id="level">Trình Độ</th>
					<th id="expYear">Năm Kinh Nghiệm</th>
					<th id="operation">Thao tác</th>
				</tr>';
		foreach ($data as $userSkill) {
			echo '<tr>';
				$count++;
				echo "<td>{$count}</td>";
				echo "<td>{$userSkill->userSkillSkill->skill_name}</td>";
				echo "<td>{$level[$userSkill->skill_level]}</td>";
				echo "<td>{$userSkill->experience_year}</td>";
				echo "<td>";
					echo CHtml::ajaxLink('<img  src="'.Html::imageUrl("action-delete.gif").'" alt="delete" title="xóa"></img>', $this->createUrl('delSkill',array('uid'=>$uid,'stype'=>$stype)),
						array(
							'type'=>'POST',
							'data'=>array('sid'=>$userSkill->user_skill_id),
							'update'=>$updateDiv,
							'beforeSend'=>"function() {
								$('$updateDiv').addClass('loading');
							}",
							'complete'=>"function(){
								$('$updateDiv').removeClass('loading');
							}",
						),
						array(
							'id'=>'delRow'.uniqid(),
						)
					);
				echo "</td>";
			echo "</tr>";
		}
		echo "</table>";
		echo "</div>";
	?>				
